<#import '/ftlLibrary/properteisVariable.ftl' as pv/>
<div class="row">
	<div class="col-lg-12 col-sm-12 col-xs-12">
		<div class="widget">
			<div class="widget-header bordered-bottom theme">
				<span class="widget-caption">园所-${(editModel=='add')?string('新增','编辑')}</span>
				<div class="widget-buttons">
					<a href="#" data-toggle="collapse">
						<i class="fa fa-minus"></i>
					</a>
					<a href="#" data-toggle="maximize">
						<i class="fa fa-expand"></i>
					</a>
				</div>
			</div>
			<div class="widget-body">
				<div class="row">
					<form class="editForm" action="${saveUrl}" method="post" responseType="JSON" role="form" id="editForm_${serializeNum}"
						data-bv-submitButtons="#editFormSubmitBtn_${serializeNum}"
						data-bv-message="This value is not valid"
						data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
						data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
						data-bv-feedbackicons-validating="glyphicon glyphicon-refresh">
							<input type="hidden" name="id" value="${editEntity.id}">
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="name" class="col-sm-2 control-label no-padding-right">课程id</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="32" name="name" alt="课程id" id="name" placeholder="课程id" type="text" title="课程id" class="form-control"  value="${editEntity.name}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="contractPhone" class="col-sm-2 control-label no-padding-right">推送位置(1,推送至亲子园banner 2,推送至发现亲子活动)</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="11" name="contractPhone" alt="推送位置(1,        推送至亲子园banner 2,        推送至发现亲子活动)" id="contractPhone" placeholder="推送位置(1,        推送至亲子园banner 2,        推送至发现亲子活动)" type="text" title="推送位置(1,        推送至亲子园banner 2,        推送至发现亲子活动)" class="form-control"  value="${editEntity.contractPhone}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="publicityImage" class="col-sm-2 control-label no-padding-right">园所宣传图</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="715827882" name="publicityImage" alt="园所宣传图" id="publicityImage" placeholder="园所宣传图" type="text" title="园所宣传图" class="form-control"  value="${editEntity.publicityImage}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="addressProvince" class="col-sm-2 control-label no-padding-right">园所属省</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="20" name="addressProvince" alt="园所属省" id="addressProvince" placeholder="园所属省" type="text" title="园所属省" class="form-control"  value="${editEntity.addressProvince}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="addressCity" class="col-sm-2 control-label no-padding-right">园所所属城市</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="20" name="addressCity" alt="园所所属城市" id="addressCity" placeholder="园所所属城市" type="text" title="园所所属城市" class="form-control"  value="${editEntity.addressCity}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="addressRegion" class="col-sm-2 control-label no-padding-right">园所所属城区</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="20" name="addressRegion" alt="园所所属城区" id="addressRegion" placeholder="园所所属城区" type="text" title="园所所属城区" class="form-control"  value="${editEntity.addressRegion}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="address" class="col-sm-2 control-label no-padding-right">园所详细地址</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="100" name="address" alt="园所详细地址" id="address" placeholder="园所详细地址" type="text" title="园所详细地址" class="form-control"  value="${editEntity.address}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="introduce" class="col-sm-2 control-label no-padding-right">园所介绍</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="715827882" name="introduce" alt="园所介绍" id="introduce" placeholder="园所介绍" type="text" title="园所介绍" class="form-control"  value="${editEntity.introduce}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="issue" class="col-sm-2 control-label no-padding-right">是否发布(1味发布,2 已发布)</label>
									<div class="col-sm-10">
										<input  data-bv-integer-message="The field is number" data-bv-message="The field is not valid" data-bv-integer="true" size="11" name="issue" alt="是否发布(1味发布,        2 已发布)" id="issue" placeholder="是否发布(1味发布,        2 已发布)" type="text" title="是否发布(1味发布,        2 已发布)" class="form-control"  value="${editEntity.issue}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="adminUserId" class="col-sm-2 control-label no-padding-right">创建人</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="32" name="adminUserId" alt="创建人" id="adminUserId" placeholder="创建人" type="text" title="创建人" class="form-control"  value="${editEntity.adminUserId}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (false && editModel=='add')||(false && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="createTime" class="col-sm-2 control-label no-padding-right">创建时间</label>
									<div class="col-sm-10">
										<span class="input-icon icon-left">
											<input data-bv-date-format="YYYY-MM-DD hh:mm:ss" data-bv-message="The field is not valid" data-bv-date-message="请正确输入一个时间" data-bv-date="true" size="19" name="createTime" alt="创建时间" id="createTime" placeholder="创建时间" type="text" title="创建时间" class="form-control form-control date-picker" onfocus="WdatePicker({doubleCalendar:true,dateFmt:'yyyy-MM-dd+HH:mm:ss'})"  value="${editEntity.createTime}"/>
											<i class="fa fa-calendar"></i>
										</span>
									</div>
								</div>
							</div>
							</#if>
							<#if (false && editModel=='add')||(false && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="updateTime" class="col-sm-2 control-label no-padding-right">修改时间</label>
									<div class="col-sm-10">
										<span class="input-icon icon-left">
											<input data-bv-date-format="YYYY-MM-DD hh:mm:ss" data-bv-message="The field is not valid" data-bv-date-message="请正确输入一个时间" data-bv-date="true" size="19" name="updateTime" alt="修改时间" id="updateTime" placeholder="修改时间" type="text" title="修改时间" class="form-control form-control date-picker" onfocus="WdatePicker({doubleCalendar:true,dateFmt:'yyyy-MM-dd+HH:mm:ss'})"  value="${editEntity.updateTime}"/>
											<i class="fa fa-calendar"></i>
										</span>
									</div>
								</div>
							</div>
							</#if>
							<#if (false && editModel=='add')||(false && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="version" class="col-sm-2 control-label no-padding-right">版本</label>
									<div class="col-sm-10">
										<input  data-bv-integer-message="The field is number" data-bv-message="The field is not valid" data-bv-integer="true" size="11" name="version" alt="版本" id="version" placeholder="版本" type="text" title="版本" class="form-control"  value="${editEntity.version}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
						<div class="col-sm-12">
							<input type="button" class="btn btn-default" data-dismiss="modal" value="返回" />
							<button type="submit" class="btn btn-blue" id="editFormSubmitBtn_${serializeNum}">保存</button>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="assets/js/validation/bootstrapValidator_init.js"></script>
<script>
$(".selectpicker_${serializeNum}").select2();
</script>